//
//  KRCarouselVC.m
//  QuickCare
//
//  Created by 张凯锐 on 16/7/11.
//  Copyright © 2016年 lidabiao. All rights reserved.
//

#import "KRCarouselVC.h"

@interface KRCarouselVC ()
@property (weak, nonatomic) IBOutlet UIWebView *carounselWebView;
@end

@implementation KRCarouselVC
- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    if (self.index == 0) {
        NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://jingyan.baidu.com/article/3ea514890ddb9352e61bba38.html"]];
        [self.carounselWebView loadRequest:request];
    } else if(self.index == 1) {
        NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.carelink.cn/#famousdoctors"]];
        [self.carounselWebView loadRequest:request];
    } else if(self.index == 2) {
        NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://difang.gmw.cn/newspaper/2015-11/15/content_109869159.htm"]];
        [self.carounselWebView loadRequest:request];
    } else if(self.index == 3) {
        NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.360doc.com/content/16/0330/19/810840_546604250.shtml"]];
        [self.carounselWebView loadRequest:request];
    } else if(self.index == 100) {
        NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.baidu.com"]];
        [self.carounselWebView loadRequest:request];
    }
}

@end
